#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
int
main (int argc, char **argv)
{
  pid_t mypid = getpid ();
  pid_t parentpid = getppid ();
  pid_t childpid = fork ();
    printf ("My pid is %d, I\'m child of %d and My grandpid is %d \n", childpid,mypid, parentpid);
sleep(250);
  return 0;
}
